package com.bw.http.http.okhttp

import com.bw.http.BuildConfig
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory

object RetrofitManger {
    fun getRetrofit(client: OkHttpClient): Retrofit {
        val builder = Retrofit.Builder()
        builder.apply {
            baseUrl(BuildConfig.BASE_URL)
            client(client)
            addConverterFactory(GsonConverterFactory.create())
        }
        return builder.build()
    }
}